function getprice(price,display,idqty)
{
	$(document).ready(function(){
		qty=parseInt($(idqty).val());
		if(!isNaN(qty) && qty>0){
		$.post('/include/xl_function.php',{txt_price:price,qty:qty},function(data)
			{
				$("#"+display).html(data);
			});
		}
	});
}
function addinput()
{
	$.ajax( {
        type: 'POST',
        url: '/include/xl_function.php',
        data: { checked_box : $('input:checkbox:checked').val()},

        success: function(data) {
            $('.txt-addbox').html(data);
        }
    } );
}
$(function() {
  $("#datepicker").datepicker();
  
  
});

function removeVal()
{
	$(".txt_price").addClass('require number');
}
function addVal()
{
	$(".txt_price").removeClass('require number');
}
function xldom()
{
	if($('input:radio[name="rdo"]').filter('[value="Autre"]').attr('checked')==true)
	{
		if($(".txt_price").val()=="") 
		{ 
			$(".message-require").css("display","block");
			$(".message-number").css("display","none");
			return false;
		}	
		if(isNaN($(".txt_price").val()) || $(".txt_price").val()<=0)
		{
			$(".message-number").css("display","block");
			$(".message-require").css("display","none");
			return false;
		}
	}
	else
	return true;
}
function xoa()
{
	if(confirm("Vous vous engagez à ne pas supprimer?")==false)
	return false;
}



     